package com.hivekion.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnType;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.hivekion.common.entity.BaseEntity;
import lombok.Data;

/**
 * 自定义统计表单-统计指标配置 sys_statistics_item
 *
 * @author wangqi
 */
@Data
@TableName(value = "tjj_statistics_target_schame")
public class SysStatisticsTargetSchame extends BaseEntity {

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("统计报表名称id")
      private String biNameId;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 250)
      @ColumnComment("统计指标名称")
      private String targetName;

      /*
      * 2022年1月2号 弃用
      * */
      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("统计指标类型，二维统计指标，mainTarget,一维度其他指标，otherTarget")
      private String targetType;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("统计指标的id")
      private String targetId;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("父级id")
      private String parentId;

      /*
      * 汇总指标需要指定年度、季度
      * */
      @TableField
      @ColumnType(value = MySqlTypeConstant.INT)
      @ColumnComment("指标类型；0 统计指标 1 汇总指标 2其他指标 3计算指标")
      private Integer targetClass;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT)
      @ColumnComment("汇总指标年")
      private Integer yearNum;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT)
      @ColumnComment("汇总指标季度（0 全年； 1 第一季度； 2 第二季度； 3第三季度 ；4 第四季度）")
      private Integer quarterNum;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT)
      @ColumnComment("显示顺序")
      private Integer sortCode;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT)
      @ColumnComment("允许编辑，0 可编辑，1不可编辑")
      private Integer allowEdit;

      @TableField
      @ColumnType(value = MySqlTypeConstant.TEXT)
      @ColumnComment("计算指标公式")
      private String targetSumRule;

}
